<script setup lang="ts">
import { ref } from 'vue';
// 简单类型 推荐使用类型推断

const money = ref(10)

// 复杂类型 推荐用泛型
type Todo = {
  id: number
  name: string
  done: boolean
}

const list = ref<Todo[]>([])

setTimeout(()=> {
  list.value = [{id:1,name: '小李',done: false}, {id: 2, name: '老韩', done: true}]
}, 1000)

</script>

<template>
  <div class="app-page">
    app
    
  </div>
</template>

<style lang="scss" scoped></style>
